import request from '../utils/server'
// 获取验证码
export const getCode = (data) => {
    return request.get(`sms/codes/${data}`)
}
/**
 * 用户登录
 * @param {mobile,code} data
 */
export const login = (data) => {
    return request.post('authorizations',data)
}
/**
 * user-info
 */
export const getUserInfo = () => request.get('user')